package edu.scnu.fans.fingertip.order.output;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.Instant;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("订单商品")
public class OrderItemOutput {

    private Long id;

    private Instant created;
    private Instant updated;

    @ApiModelProperty("用户id")
    private Long userId;
    @ApiModelProperty("订单id")
    private Long orderId;
    @ApiModelProperty("商品id")
    private Long itemId;
    @ApiModelProperty("商品名")
    private String itemTitle;
    @ApiModelProperty("商品图片")
    private String itemImgUrl;
    @ApiModelProperty("商品规格id")
    private Long itemSpecId;
    @ApiModelProperty("商品规格名")
    private String itemSpecName;
    @ApiModelProperty("价格")
    private BigDecimal price;
    @ApiModelProperty("购买数量")
    private Integer amount;

}
